<template>
	<popconfirm-btn v-bind="$attrs" btnStr="" :type="type" :tooltip="tooltip" :confirmText="confirmText" :icon="icon" :localIcon="localIcon"
		:secondary="secondary" :strong="strong" :circle="circle" :onPositiveClick="onPositiveClick" :twidth="twidth" />
</template>

<script  setup lang='ts' >
import PopconfirmBtn from "~/src/components/custom/popconfirm-btn.vue"
type Props = {
	confirmText: string, icon?: string, tooltip?: string, strong?: boolean, circle?: boolean, type?: string, secondary?: boolean,twidth?:number,
	localIcon?:boolean,
	onPositiveClick: ((e: MouseEvent) => any);
}
const { confirmText, icon, tooltip, type, secondary,twidth } = withDefaults(defineProps<Props>(), {
	tooltip: "删除", icon: "ri-delete-bin-2-line", confirmText: "是否确认删除当前内容?"
	, strong: true, circle: true, type: "error", secondary: true, localIcon:true
})

defineOptions({ name: 'TablePopconfirmBtn' });
</script>

<style lang='scss' scoped>
</style>
